<template>
  <h1>getCurrentInstance的使用</h1>

  <!-- 
    ref
    reactive
    watch
    computed
    watchEffect
    toRefs
    onMouted
    onBefreUnmount
    onActivated
    onDeactivated
    其它的基本上都是面试题
   -->
</template>

<script setup>
import { getCurrentInstance } from "vue";
const app = getCurrentInstance();
console.log(app.appContext.config.globalProperties.$http);
console.log(app.appContext.config.globalProperties.a);
console.log(app.appContext.config.globalProperties.b);
</script>

